import axios from '../util/axios'

export function getAuth(params){
  return axios({
    url:'/admin/auth',
    method:'GET',
    params
  })
}

export function addAuth(params){
  return axios({
    url:'/admin/addAuth',
    method:'POST',
    params
  })
}

export function editAuth(params){
  return axios({
    url:'/admin/editAuth',
    method:'PUT',
    params
  })
}

export function deleteAuth(params){
  return axios({
    url:'/admin/deleteAuth',
    method:'DELETE',
    params
  })
}


export function editAuthRole(params){
  return axios({
    url:'/admin/editAuthRole',
    method:'PUT',
    params
  })
}